﻿//======================================================================
//
//        Copyright (C) 2007-2008 三月软件工作室    
//        All rights reserved
//
//        filename :MainControl
//        description :
//
//        created by 侯垒 at  2009-11-13 18:31:12
//        http://houleixx.cnblogs.com
//
//======================================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WeifenLuo.WinFormsUI.Docking;

namespace CreateEntity
{
    /// <summary>
    /// 对主窗口的资源进行封装
    /// </summary>
    public class MainResource
    {
        Main main;
        public MainResource(Main main)
        {
            this.main = main;
        }

        /// <summary>
        /// 主窗口中的dockPanel
        /// </summary>
        public DockPanel DockPanel
        {
            get
            {
                return main.dockPanel;
            }
        }

        /// <summary>
        /// 复制代码
        /// </summary>
        public void Copy()
        {
            main.Copy();
        }

        /// <summary>
        /// 更新状态栏
        /// </summary>
        /// <param name="msg">状态信息</param>
        public void UpdateState(string msg)
        {
            main.UpdateState(msg);
        }

        /// <summary>
        /// 另存为代码
        /// </summary>
        public void SaveFile()
        {
            main.SaveFile();
        }

        /// <summary>
        /// 粘贴
        /// </summary>
        public void Paste()
        {
            main.Paste();
        }

        /// <summary>
        /// 剪切
        /// </summary>
        public void Cut()
        {
            main.Cut();
        }

        /// <summary>
        /// 全选
        /// </summary>
        public void SelectAll()
        {
            main.SelectAll();
        }
    }
}
